package test;

public class People {
	private int id = 3;
	private String name;
	private int age;
	private char gender;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public char getGender() {
		return gender;
	}
	public void setGender(char gender) {
		this.gender = gender;
	}
	
	public People() {
		System.out.println("编号是"+id);
	}
	
	private People show() {
		System.out.println("输出人员信息");
		return null;
	}
	
	public People(int id) {
		super();
		this.id = id;
		System.out.println("通过有参构造创建了People对象");
	}
	
}
